package com.wl.java_spring_boot01.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.wl.java_spring_boot01.modules.account.entity.Role;
import com.wl.java_spring_boot01.modules.common.vo.Result;
import com.wl.java_spring_boot01.modules.common.vo.SearchVo;

import java.util.List;

/**
 * @author 汪林
 * @date 2020/8/22 17:48
 */
public interface RoleService {
    //查询所有
    List<Role> getRoles();

    PageInfo<Role> getUsersBySearchVo(SearchVo searchVo);

    Result<Role> insertRole(Role role);

    Role getRoleByRoleId(int roleId);

    Result<Role> updateRole(Role role);

    Result<Object> deleteRole(int roleId);
}
